package com.opennews.openplatform

class AppReleaseLog {
    String id
    Date releaseDate
    String appVersion
    String changeLog
    String apkFilename
    String appStoreUrl
    boolean isMandatory = false

    static constraints = {
        releaseDate nullable: false
        appVersion nullable: false, blank: false, unique: true, maxSize: 50
        changeLog nullable: false, blank: false, maxSize: 500
        apkFilename nullable: false, blank: false, maxSize: 255
        appStoreUrl nullable: false, blank: false, maxSize: 255
        isMandatory nullable: false
    }

    static mapping = {
        version false
    }
}